package com.hxkj.service.article;

import com.hxkj.domain.po.Leaflet;
import com.platform.common.domain.result.ResultMessageStruct;
import com.platform.common.domain.result.ResultPageStruct;
import com.platform.common.domain.to.PageTo;

import java.util.List;

/**
 * 单页Service
 * <p>
 * created by zzx on 2018/6/5.
 */
public interface LeafletService {

    /**
     * 获取单页列表
     *
     * @param
     * @return
     * @throws Exception
     */
    ResultPageStruct<Leaflet> getLeafletList(Leaflet leaflet, PageTo pageParam) throws Exception;


    /**
     * 查询一条单页信息
     *
     * @param leaflet
     * @return
     * @throws Exception
     */
    Leaflet getLeaflet(Leaflet leaflet) throws Exception;


    /**
     * 修改一条单页信息
     *
     * @param leaflet
     */
    void updateLeaflet(Leaflet leaflet) throws Exception;

    /**
     * 批量软删除单页
     *
     * @param leaflet
     */
    void removerLeaflet(Leaflet leaflet) throws Exception;

    /**
     * 发布一条单页信息
     *
     * @param leaflet
     */
    void saveLeaflet(Leaflet leaflet) throws Exception;


    /****
     * 获取单页数据
     * ***/
    List<Leaflet> getLeafletList(Leaflet leaflet) throws Exception;

    /**
     * 生成多个单页 chenfangzhou
     *
     * @param leaflet
     * @return
     */
    ResultMessageStruct CreateLeafletPages(Leaflet leaflet) throws Exception;
}
